<%@ page import="java.io.PrintWriter" %><%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/9/27
  Time: 14:56
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    response:响应对象（服务器对浏览器的一次响应）
    数据类型:HttpServletResponse(ServletResponse)
    <%
        //设置响应编码集
        //response.setCharacterEncoding("utf=8");
        //获取out(输出)对象
        //PrintWriter out1 = response.getWriter();
        //重定向--多次请求多次响应
        //response.sendRedirect("url");
    %>
    <%
        request.setAttribute("A","nihao");
        response.sendRedirect("f2.jsp");

    %>
</body>
</html>
